package kcms.db;

// Generated Sep 18, 2015 4:49:32 PM by Hibernate Tools 4.0.0

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.springframework.stereotype.Component;

/**
 * Assignmentstudent generated by hbm2java
 */
@Component
@Entity
@Table(name = "assignmentstudent", catalog = "kcms", uniqueConstraints = @UniqueConstraint(columnNames = {
		"assignmentsn", "sid" }))
public class Assignmentstudent implements java.io.Serializable {

	private Integer assignmentid;
	private Integer assignmentsn;
	private String sid;

	public Assignmentstudent() {
	}

	public Assignmentstudent(int assignmentsn, String sid) {
		this.assignmentsn = assignmentsn;
		this.sid = sid;
	}

	public Assignmentstudent(Integer assignmentsn, String sid,
			Integer assignmentid) {
		this.assignmentsn = assignmentsn;
		this.sid = sid;
		this.assignmentid=assignmentid;
	}

	@Id
	@Column(name = "assignmentid", unique = true, nullable = false)
	public Integer getAssignmentid() {
		return this.assignmentid;
	}

	public void setAssignmentid(Integer assignmentid) {
		this.assignmentid = assignmentid;
	}

	@Column(name = "assignmentsn", nullable = false)
	public Integer getAssignmentsn() {
		return this.assignmentsn;
	}

	public void setAssignmentsn(Integer assignmentsn) {
		this.assignmentsn = assignmentsn;
	}

	@Column(name = "sid", nullable = false, length = 50)
	public String getSid() {
		return this.sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	

}
